home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.kdcol.net!usenet
- From: jestre@kdcol.com (Chad Barb)
- Newsgroups: comp.lang.c++
- Subject: Watcom 10.0 #pragma and C++ class declarations
- Date: Sun, 11 Feb 1996 01:18:07 GMT
- Organization: KDC-Online Internet Access
- Message-ID: <4fjcgd$omj@kdcol.kdcol.com>
- Reply-To: jestre@kdcol.com
- NNTP-Posting-Host: s02.cs00.io.kdcol.net
- X-Newsreader: Forte Free Agent 1.0.82
-
-
- I am trying to create a screen class in Watcom 10.0.
- To do this, I need to use assembly, but I am unclear on the proper
- syntax for in-class pragmas.
-
- heres the header (abridged):
-
- //begin
-
- class ScreenClass
- {
- public:
-
- void SetMode(unsigned char *);
-
- };
-
- //end
-
- I have tried:
-
- //begin
-
- #pragma aux ScreenClass::SetMode = \
- "mov ah,0"\
- "int 0x10"\
- parm [al]\
- modify [ah];
-
- //end
-
- and also that same #pragma (without the 'ScreenClass::') within the
- code, but none of it compiles and links properly.
-
- Right now I've resorted to declaring the assembly as a global
- function, and using the in-class one as a shell, but this isn't that
- great of a solution.
-
- Any help would be appreciated.
-
- /\/\
- o/\o
- 0o
- ~~
- \/ - Jestre (jestre@kdcol.com)
-
-